package demo.auth.api.interfaces;

import demo.auth.api.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Chen Jie
 * @email jie.chen@remarkdip.com
 * @date 2018/7/24
 */
@RequestMapping("/auth")
public interface AuthApi {
    @PostMapping(value = "/password")
    String getPassword(@RequestBody User user);

    @GetMapping(value = "/username")
    String getUsername();
}
